package service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.ScoreDao;
import po.Score;
import service.ScoreService;

@Service("scoreService")
@Transactional
public class ScoreServiceImpl implements ScoreService {
	@Autowired
	private ScoreDao scoreDao;

	@Override
	public List<Score> getScoreList() {
		return scoreDao.getList();
	}

	@Override
	public int deleteScore(Integer scoreid) {
		return scoreDao.delScore(scoreid);
	}

	@Override
	public int addScore(Score score) {
		return scoreDao.addScore(score);
	}

	@Override
	public Score getScoreId(Integer id) {
		return scoreDao.getScoreId(id);
	}

	@Override
	public int updateScore(Score score) {
		return scoreDao.updateScore(score);
	}

	@Override
	public List<Score> findList(String data) {
		return scoreDao.findList(data);
	}


}
